home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_300 / 353_02 / truck.h < prev    next >
C/C++ Source or Header  |  1992-01-18  |  406b  |  23 lines

  1.                                   // Chapter 7 - Program 6
  2. #ifndef TRUCK_H
  3. #define TRUCK_H
  4.  
  5. #include "vehicle.h"
  6.  
  7. class truck : public vehicle {
  8.    int passenger_load;
  9.    float payload;
  10. public:
  11.    void init_truck(int how_many = 2, float max_load = 24000.0);
  12.    float efficiency(void);
  13.    int passengers(void);
  14. };
  15.  
  16. #endif
  17.  
  18.  
  19.  
  20. // Result of execution
  21. //
  22. // (this file cannot be executed)
  23.